<fieldset class="field">
  <div>
    <div class="fileinput fileinput-new" data-provides="fileinput">
      <div class="pull-left">
        <span class="btn btn-primary btn-file">
          <span class="fileinput-new" (click)="change()" title="请选择图片"><span class="glyphicon glyphicon-picture"></span> 选择图片</span>
          <span class="fileinput-exists" (click)="change()" ><span class="glyphicon glyphicon-transfer"></span> 换一张</span>
          <input type="file" name="image" (change)="change()" #Img accept="image/gif,image/jpeg,image/x-png" />

        </span>
        <input type="hide" class="hide" name="target" [(ngModel)]="target" required />
        <a href="javascript:;" (click)="change()" class="btn btn-warning fileinput-exists" data-dismiss="fileinput"><span class="glyphicon glyphicon-trash"></span> 移除</a>
      </div>
      <span class="pull-left details-p hide-gg">(建议上传820 x 330尺寸的图片)</span>
      <span class="pull-left details-p hide-fm">(建议上传1170 x 780尺寸的图片)</span>
      <div class="fileinput-new thumbnail">
        <img class="default-img" [attr.src]="imagePath">
      </div>
      <div class="fileinput-preview fileinput-exists thumbnail"></div>
    </div>
  </div>
</fieldset>
<label class="red required">*</label>
<div *ngIf="expressionError" class="error-alert">
  <small class="error">请选择上传图片</small>
</div>
